MkHtmlBlock
PyMdown-based Html block. Can be used to show raw content.¶
Example: Regular¶
Name | Children | Inherits |
---|---|---|
MkBlock mknodes.basenodes.mkblock PyMdown-based block. |
graph TD
94596173129984["mkhtmlblock.MkHtmlBlock"]
94596169140816["mkblock.MkBlock"]
94596169139824["mkcontainer.MkContainer"]
94596169136704["mknode.MkNode"]
94596171773984["node.Node"]
139930746687680["builtins.object"]
94596169140816 --> 94596173129984
94596169139824 --> 94596169140816
94596169136704 --> 94596169139824
94596171773984 --> 94596169136704
139930746687680 --> 94596171773984
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkhtmlblock/metadata.toml
[metadata]
icon = "octicon:code-16"
name = "MkHtmlBlock"
[requirements.extension."pymdownx.blocks.html"]
[examples.regular]
title = "Regular"
jinja = """
{{ "Different types." | MkHtmlBlock("div") }}
"""
[output.markdown]
template = """
{{ node.fence_boundary }} html{% if node.argument %}{{ node.argument | add(prefix=' | ')}}{% endif %}
{{ node.attributes_block }}
{{ node.content_block }}{{ node.fence_boundary }}
"""